package top.zhaojx.rpc.serviceImpl;

import lombok.extern.slf4j.Slf4j;
import top.zhaojx.rpc.annotation.RpcService;
import top.zhaojx.rpc.api.HelloObject;
import top.zhaojx.rpc.api.HelloService;

@Slf4j
@RpcService(group = "test1", version = "version1")
public class HelloServiceImpl implements HelloService {

    static {
        System.out.println("HelloServiceImpl被创建");
    }

    @Override
    public String hello(HelloObject object) {
        log.info("HelloServiceImpl接收到：{}", object.getMessage());
        return "HelloServiceImpl这是调用的返回值，id=" + object.getId();
    }
}
